package com.ruibang.glass.sale.constant;

/**
 * 流程Id菜单
 */
public enum SaleMenuIdCode {

   MENU_ID_BCPK_OUT(0001,"w0235dokc6a011a6f2b5840cea000029","半成品库"),
   MENU_ID_CPK_OUT(0002,"w0235dokc6a011a6f2b5840cea000038","成品库"),
   MENU_ID_CPK_IN(0003,"w0235dokc6a011a6f2b5840cea000037","成品库"),
   MENU_ID_BCPK_IN(0004,"w0235dokc6a011a6f2b5840cea000028","半成品库"),
   MENU_IN_SALE_SHIPPING(0005,"e0235deec6a011a6f2b5840cea091013",""),
   MENU_BALANCE_GOODS_ID(0006,"e0235deec6a011a6f2b5840cea000023",""),

    ;



    private int code;
    private String msg;
    private String name;

    SaleMenuIdCode(int code, String msg,String name) {
        this.code = code;
        this.msg = msg;
        this.name = name;
    }

    public String getMsg() {
        return msg;
    }

    public String getName() {
        return name;
    }

    public int getCode() {
        return code;
    }

    public static String getValue(int code) {
        for (SaleMenuIdCode ele : values()) {
            if (ele.getCode() == code) {
                return ele.getMsg();
            }
        }
        return null;
    }
}
